package com.cedarhd.finance.bl.domain.entity;

import com.cedarhd.finance.bl.common.enums.Whether;

import javax.persistence.*;

/**
 * @author Evan
 * @date 2018/3/5
 */
@Entity
@EntityListeners(Student.class)
public class Student extends IdEntity {
    @Column(columnDefinition = "varchar(50) NOT NULL comment '学生姓名'")
    private String studentName;

    @Column(columnDefinition = "int(3) comment '学生年龄'")
    private Integer age;

    @Column(columnDefinition = "varchar(10) NOT NULL comment '是否有效'")
    @Enumerated(EnumType.STRING)
    private Whether effective;

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Whether getEffective() {
        return effective;
    }

    public void setEffective(Whether effective) {
        this.effective = effective;
    }
}
